//
//  ClassfileTableViewCell.m
//  Cooking
//
//  Created by dlios on 15-10-9.
//  Copyright (c) 2015年 ZP.Y. All rights reserved.
//

#import "ClassfileTableViewCell.h"
#import "DaPeiClassfileModel.h"

@interface ClassfileTableViewCell ()

@property(nonatomic ,retain)UILabel *lable;
@end

@implementation ClassfileTableViewCell
- (void)dealloc
{
    [_lable release];
    [super dealloc];
    
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self creat];
    }
    return self;
}

-(void)creat
{
    self.lable  = [[UILabel alloc]initWithFrame:CGRectMake(10, 5, 120, 30)];
    [self.contentView addSubview:_lable];
}

-(void)receveModel:(DaPeiClassfileModel *)model
{
 
    self.lable.text = model.text;
}


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
